﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TTServer
{
    class Global
    {
        public static int MAX_CLIENT = 10;

        public static int NO_LENGTH_CODE = -1;

        public static bool bEnableNMS = true;

        public static String serverIP = "N/A";
        
        public static int port = 44472;

        public static string admistratorPassword = "1234567";

        public static int n = 5;

        public static int k = 2;

        private static int count = 1;

        private static String defaultSystemEmailAddress = "0812472.0812444.essay@gmail.com";
        private static String defaultSystemEmailPassword = "khoacnttcntn08";
        private static String _systemEmailAddress = defaultSystemEmailAddress;

        public static String SystemEmailAddress
        {
            get { return Global._systemEmailAddress; }
        }

        private static String _systemEmailPassword = defaultSystemEmailPassword;

        public static String SystemEmailPassword
        {
            get { return Global._systemEmailPassword; }
        }

        public static void SetSystemEmail(String username, String pass)
        {
            _systemEmailAddress = username;
            _systemEmailPassword = pass;
        }

        public static void SetSystemEmailToDefault()
        {
            _systemEmailAddress = defaultSystemEmailAddress;
            _systemEmailPassword = defaultSystemEmailPassword;
        }

        public static int getClientID()
        {
            return count++;
        }

        private static int count2 = 0;

        public static int getCount()
        {
            return count2++;
        }
    }
}
